<section class="section news-section bg-primary">
  <div class="container">
    <div class="title-box">
      <h1 class="text-white">NEWS<br />最新资讯</h1>
      <p class="text-white">了解最近楼氏，洞察新营销机会。</p>
    </div>
    <div class="news-box">
      <div class="glide" id="news-glide">
        <div data-glide-el="track" class="glide__track">
          <ul class="glide__slides">
            <?php foreach($news as $v): ?>
            <li class="glide__slide">
              <div class="news-item">
                <img src="<?php echo $v['image']; ?>" alt="" />
                <div class="news-content">
                  <span><?php echo date('Y.m.d', $v['createtime']); ?></span>
                  <h2><?php echo $v['title']; ?></h2>
                  <a href="<?php echo $v['url']; ?>">阅读详情</a>
                </div>
              </div>
            </li>
            <?php endForeach; ?>
          </ul>
        </div>
        <div class="glide__arrows" data-glide-el="controls">
          <a class="glide__arrow glide__arrow--left" data-glide-dir="<"></a>
          <a class="glide__arrow glide__arrow--right" data-glide-dir=">"></a>
        </div>
      </div>
      <a class="news-btn" href="/news">更多资讯</a>
    </div>
  </div>
</section>
